package com.zsrt.java.day20161229.wrl.demo05;

import org.junit.Test;

public class Tank02Test {

	@Test
	public void test() {
		String tankType = "中国99坦克";
		int distance = 4000;
		Tank02 china99 = new Tank02();
		boolean judge = china99.xx(tankType, distance);
		if(judge){
			System.out.println(tankType+" .打中了"+distance+"米的距离");
		}else{
			System.out.println(" .没有打中"+distance+"米的距离");
		}
		System.out.println("---------------------");
		tankType = "美国MP坦克";
		judge = china99.xx(tankType, distance);
		if(judge){
			System.out.println(tankType+" .打中了"+distance+"米的距离");
		}else{
			System.out.println(tankType+" .没有打中"+distance+"米的距离");
		}
	}

}
